efa system logging set

Configure logging of a service.

Syntax

efa system logging set [ --service service-name | --type logging-type | --size file-size | --maximum-files number-of-files | --level logging-level ]

Parameters

--service service-name
Comma separated list of service names. Valid values are [all|auth|fabric|faultmanager|hyperv|inventory| notification|policy|raslog|rbac|system|tenant|vcenter].
--type logging-type
Logging type to modify. Valid values are [all|error]. Default all.
--size file-size
Logging file size in megabytes. Default 100 for type base. Default 10 for type error. Range 1-100.
--maximum-files number-of-files
Maximum number of Logging files. Default 10. Range 1-100.
--level logging-level
Detail level of logging. Allow logging between panic and selected level. Valid values are [panic|fatal|error|warning|info|debugging]. Default debugging for type base. Default error for type error.

Examples

The following examples configures logging on the specified services.
efa system logging set --service inventory --size 200 --level info 
+-----------+------+------+---------------+-------+---------+--------+ 
|  Service  | Type | Size | Maximum Files | Level | Status  | Reason | 
+-----------+------+------+---------------+-------+---------+--------+ 
| inventory | all  | 200  |               | info  | Success |        | 
+-----------+------+------+---------------+-------+---------+--------+ 
Logging set 
                
efa system logging set --service inventory,fabric --type error --maximum-files 20  
+-----------+-------+------+---------------+-------+---------+--------+ 
|  Service  | Type  | Size | Maximum Files | Level | Status  | Reason | 
+-----------+-------+------+---------------+-------+---------+--------+ 
| inventory | error |      |      20       |       | Success |        | 
+-----------+-------+------+---------------+-------+---------+--------+ 
|  fabric   | error |      |      20       |       | Success |        | 
+-----------+-------+------+---------------+-------+---------+--------+ 
Logging set 
                
efa system logging set --service inventory --type error --level fatal 
+-----------+-------+------+---------------+-------+---------+--------+ 
|  Service  | Type  | Size | Maximum Files | Level | Status  | Reason | 
+-----------+-------+------+---------------+-------+---------+--------+ 
| inventory | error |      |               | fatal | Success |        | 
+-----------+-------+------+---------------+-------+---------+--------+ 
Logging set